import 'package:freezed_annotation/freezed_annotation.dart';
import 'dart:convert';

part 'user_get_token_response.freezed.dart';
part 'user_get_token_response.g.dart';

@freezed
class UserGetTokenResponse with _$UserGetTokenResponse {
  const factory UserGetTokenResponse({
    @JsonKey(name: "code") required int code,
    @JsonKey(name: "msg") required String msg,
    @JsonKey(name: "time") required String time,
    @JsonKey(name: "data") required dynamic data,
  }) = _UserGetTokenResponse;

  factory UserGetTokenResponse.fromJson(Map<String, dynamic> json) =>
      _$UserGetTokenResponseFromJson(json);
}
